package com.likui.myqq.util;

import android.os.Environment;

import java.io.File;

/**
 * Created by helikui on 2015/9/30.
 */
public class FileUtil {
    private static String path = "";

    static {
        if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
            path = Environment.getExternalStorageDirectory() + "/MyQQ";
        } else {
            path = Environment.getDataDirectory().getAbsolutePath() + "/MyQQ";
        }
    }

    public static String getRecentChatPath() {
        File file=new File(path+"/RecentChat/");
        if(!file.exists()){
            file.mkdirs();
        }
        return path+"/RecentChat/";
    }
}
